package com.session;

import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionBindingListener;

public class ActiveUserDetails implements HttpSessionBindingListener {

	private String username;
	private String useId;
	private String otherDetails;
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getUseId() {
		return useId;
	}
	public void setUseId(String useId) {
		this.useId = useId;
	}
	public String getOtherDetails() {
		return otherDetails;
	}
	public void setOtherDetails(String otherDetails) {
		this.otherDetails = otherDetails;
	}
	@Override
	public void valueBound(HttpSessionBindingEvent paramHttpSessionBindingEvent) {
		
		System.out.println(paramHttpSessionBindingEvent.getName() +" Bounded to session Id "+paramHttpSessionBindingEvent.getSession().getId());
	}
		@Override
	public void valueUnbound(
			HttpSessionBindingEvent paramHttpSessionBindingEvent) {
		// TODO Auto-generated method stub
		System.out.println(paramHttpSessionBindingEvent.getName()+"unbounded from session Id"+paramHttpSessionBindingEvent.getSession().getId());
	}
	
}
